home *** CD-ROM | disk | FTP | other *** search
Text File | 1992-12-13 | 405 b | 15 lines | [TEXT/KEEN] |
- # $FileSizes : print name of file and size of data fork in bytes,
- # followed by totals.
- # Typically use the "MFS selected files" input option, and "Show stdout".
-
- BEGIN {
- for (i = 1; i < ARGC; ++i)#note ARGV[0] is just "hAWK"
- {
- n = split(ARGV[i], names, ":")
- curSize = fsize(ARGV[i])
- print names[n], "\t\t\t", curSize
- totSize += curSize
- }
- print ARGC-1, "files, ", totSize, "bytes total."
- }
-